package com.demo2do.fms.admin.service.authority;

import java.util.List;

import com.demo2do.fms.admin.service.DataService;
import com.demo2do.fms.entity.authority.Organization;
import com.demo2do.fms.entity.authority.User;
import com.demo2do.fms.entity.vendor.Vendor;

/**
 * 
 * @author Ysy
 *
 */
public interface OrganizationService extends DataService<Organization> {
    
    /**
     * list organization ids of the user
     * 
     * @param user
     * @return
     */
    public List<Long> listUserOrganization(User user);

    /**
     * list organization by system
     * 
     * @return
     */
    public List<Organization> listSystemOrganization();
    
    /**
     * load vendor by id
     * @param id
     * @return
     */
    public Vendor load(String id);
    
}
